package com.exercise.family

import com.alibaba.fastjson.JSONObject
import com.fun.utils.RString

class CaseCollection extends FunBase {

    static final CaseCollection drive = new CaseCollection()
    static final String content = "/collect"

    public JSONObject add() {
        String url = content + "/add"
        def params = new JSONObject()
        params.put("uid", 1000 + getRandomInt(5))
        params.put("envId", getRandomInt(3))
        params.put("apiList", Arrays.asList(32, 34, 32, 423, 3, 324, 2423, 544))
        params.put("groupName", RString.getString(10))
        def response = getPostResponse(url, params)
        output(response)

    }

    public static void main(String[] args) {
        drive.add()

    }
}
